<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/11/011
  Time: 11:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="../js/jquery-1.11.3.min.js" type="text/javascript"></script>
    <script src="../js/bootstrap.min.js" type="text/javascript"></script>
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <script type="text/javascript">
        $(function () {
            $("#xjcz").click(function () {
                console.log(this.value)
                $.ajax({
                    url: "../video.do",
                    type: "GET",
                    data: {
                        "action": "queryVideoItemByVideoId",
                        "videoId": this.value
                    },
                    success: function (data) {
                        var parse = JSON.parse(data);
                        console.log(parse)
                        
                        for (var i= 0;i<parse.length;i++){
                            $("#videoItems").append("<tr><td>"+parse[i].name+"</td>");
                        }
                    }
                })
            })
        });
    </script>
</head>
<body>

</body>
</html>
